<?php
require_once("../comm/config.php");
function list_album()
{
	$url = "https://graph.qq.com/photo/list_album?" . "access_token=" . $_SESSION["access_token"] . "&oauth_consumer_key=" . $_SESSION["appid"] . "&openid=" . $_SESSION["openid"] . "&format=json";
	$ret = file_get_contents($url);
	return $ret;
}

$ret = list_album();
$arr = json_decode($ret, true);
print_r($arr); ?>